#!/usr/bin/env python


import ttk



class CourseListTab(ttk.Frame):
	def __init__(self, parent):
		ttk.Frame.__init__(self, parent)
		
		mytree = ttk.Treeview(self)
		mytree.grid(row = 0, column = 0, sticky = 'nsew')
		
		mytree["columns"] = ("1","2")
		mytree.column("1",width=100)
		mytree.column("2",width=100)
		mytree.heading("1",text="One")
		mytree.heading("2",text="Two")
		
		lvl1 = mytree.insert("",0,text="Line 1",values=("Line 1 1","Line 1 2"))
		lvl2 = mytree.insert(lvl1,1,text="Line 2",values=("Line 2 1","Line 2 2"))
		lvl3 = mytree.insert(lvl2,2,text="Line 3",values=("Line 3 1","Line 3 2"))
		
		self.tree = mytree

